import request from '@/utils/request'

// 查询查勘列表
export function surveyManagementList(query) {
  return request({
    url: '/case_management/getCaseCondition',
    method: 'get',
    params: query
  })
}

//新增查勘
export function addSurveyManagement(data) {
  return request({
    url: '/survey_management/insertSurvey',
    method: 'post',
    data: data
  })
}

//修改查勘
export function updateSurveyManagement(data) {
  return request({
    url: '/survey_management/updateSurvey',
    method: 'post',
    data: data
  })
}


//删除查勘
export function deleteSurveyManagement(data) {
  return request({
    url: '/survey_management/deleteSurvey',
    method: 'post',
    data: data
  })
}

//查询图片
export function getSurveyImg(data) {
  return request({
    url: '/img/selectImg',
    method: 'post',
    data: data
  })
}

///删除单张图片
export function deleteSurveyImg(data) {
  return request({
    url: '/img/deleteImg',
    method: 'post',
    data: data
  })
}

///审核接口
export function updateSurveyExamine(data) {
  return request({
    url: 'survey_management/surveyExamine',
    method: 'post',
    data: data
  })
}
